//
//  Directory.m
//  Cbchot
//
//  Created by 李雷川 on 2017/12/6.
//  Copyright © 2017年 王越. All rights reserved.
//

#import "Chapter.h"

@implementation Chapter

+(Chapter *)chapterWithDictionary:(NSDictionary *)dic{
    Chapter *chapter = [[Chapter alloc]init];
    chapter.ID = [dic valueForKey:@"chapterID"];
    chapter.name = [dic valueForKey:@"chapterName"];
    chapter.num  = [[dic valueForKey:@"chapterNum"]integerValue];
    chapter.isPay = [[dic valueForKey:@"isPay"]boolValue];
//    chapter.size = [[dic valueForKey:@"size"]integerValue];
//    chapter.absoluteOffset = [[dic valueForKey:@"chapterAbsoluteOffset"]integerValue];
//    chapter.url = [dic valueForKey:@"chapterUrl"];
    return chapter;
}
@end
